home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
273_01.zip
/
GETCA.CC
< prev
next >
Wrap
Text File
|
1993-04-04
|
302b
|
13 lines
#include <dos.h>
get_ca(char *ch, char *scan)
/* Read a keystroke. ch=character code or zero if extended code
scan=extended code or scan code
*/
{
union REGS inregs;
inregs.h.ah=0;
int86(0x16,&inregs,&inregs);
*ch=inregs.h.al;
*scan=inregs.h.ah;
}